import request from "@/utils/request";

// 获取首页
export const gethobbyListAPI = (data) => {
  return request({
    url:`/CirclesService/hobby/queryAllModule`,
    method:'GET',
    data
  })
}
export const posthobbyApi = (data) => {
  return request({
    url:`/CirclesService/hobby`,
    method:'POST',
    data
  })
}

export const getcirclesListAPI = (data) => {
  return request({
    url:`/CirclesService/circles/pageInfo`,
    method:'GET',
    data
  })
}

export const getcirclesDetailAPI = (data) => {
  return request({
    url:`/CirclesService/circles/`+data,
    method:'GET',
    data
  })
}

export const postcirclesApi = (data) => {
  return request({
    url:`/CirclesService/circles`,
    method:'POST',
    data
  })
}

export const getcirclesinfoAPI = (data) => {
  return request({
    url:`/CirclesService/circles`,
    method:'GET',
	 headers: { 'Content-Type': 'application/json' },
    data
  })
}